package com.ruoyi.project.treat.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

/**
 * 挂号类型表 system_registra_fee
 *
 * @author ruoyi
 */
public class SystemTregistraFee extends BaseEntity {
    /*挂号费ID*/
    private Integer registraId;
    /*挂号类型名称*/
    private String registraName;
    /*挂号费*/
    private Double registraUnitprice;
    /*执行状态（正常 失败）*/
    private String status;
    /*扩展字段1*/
    private String ext01;
    /*扩展字段2*/
    private String ext02;

    public SystemTregistraFee() {
    }

    public SystemTregistraFee(Integer registraId, String registraName, Double registraUnitprice, String status, String ext01, String ext02) {
        this.registraId = registraId;
        this.registraName = registraName;
        this.registraUnitprice = registraUnitprice;
        this.status = status;
        this.ext01 = ext01;
        this.ext02 = ext02;
    }

    public Integer getRegistraId() {
        return registraId;
    }

    public void setRegistraId(Integer registraId) {
        this.registraId = registraId;
    }

    public String getRegistraName() {
        return registraName;
    }

    public void setRegistraName(String registraName) {
        this.registraName = registraName;
    }

    public Double getRegistraUnitprice() {
        return registraUnitprice;
    }

    public void setRegistraUnitprice(Double registraUnitprice) {
        this.registraUnitprice = registraUnitprice;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getExt01() {
        return ext01;
    }

    public void setExt01(String ext01) {
        this.ext01 = ext01;
    }

    public String getExt02() {
        return ext02;
    }

    public void setExt02(String ext02) {
        this.ext02 = ext02;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SystemTregistraFee that = (SystemTregistraFee) o;
        return Objects.equals(registraId, that.registraId) &&
                Objects.equals(registraName, that.registraName) &&
                Objects.equals(registraUnitprice, that.registraUnitprice) &&
                Objects.equals(status, that.status) &&
                Objects.equals(ext01, that.ext01) &&
                Objects.equals(ext02, that.ext02);
    }

    @Override
    public int hashCode() {
        return Objects.hash(registraId, registraName, registraUnitprice, status, ext01, ext02);
    }

    @Override
    public String toString() {
        return "SystemTregistraFee{" +
                "registraId=" + registraId +
                ", registraName='" + registraName + '\'' +
                ", registraUnitprice=" + registraUnitprice +
                ", status='" + status + '\'' +
                ", ext01='" + ext01 + '\'' +
                ", ext02='" + ext02 + '\'' +
                '}';
    }
}
